<%@ page language="java" pageEncoding="utf-8"%>

<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-template" prefix="template" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-nested" prefix="nested" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html locale="true">
  <head>
    <html:base />
    
    <title></title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<LINK href="../styles/stylewang.css"  type=text/css rel=stylesheet>
	<LINK href="../styles/sciencee.css"  type=text/css rel=stylesheet>
    <style type="text/css">
<!--
.STYLE1 {color: #FF0000}
.STYLE2 {color: #0000CC}
-->
    </style>
  </head>
  
  <body> <div id="bgwin">
    <html:form action="/modPersonal.do" method="post" focus="gender">
      <table border="0" cellpadding="0" cellspacing="2">
      	<tr>
      		<td colspan='2' ><span class="STYLE2">
      		  <logic:notEmpty name="ChangePWOK"> <bean:message key="reguser.password"></bean:message><bean:message key="reguser.modifysuccess"></bean:message>
   		      </logic:notEmpty><span class="STYLE2"></span>	  </td>
      	</tr>
      	<tr>
      		<td align="right"><bean:message key="employee.name"/>:</td>
      		<td><html:text property="empName" readonly="true"/></td>
      	</tr>
      	<tr>
      		<td align="right"><bean:message key="reguser.oldpassword"/>:</td>
      		<td><html:password property="oldPW" />
              <span class="STYLE1">
              <html:errors property="oldPW" /> <html:errors property="oldPWNull" /></span></td>
      	</tr>
      	<tr>
      		<td align="right"><bean:message key="reguser.password"/>:</td>
      		<td><html:password property="newPW1" /> <span class="STYLE1"><html:errors property="newPW1"/></span> </td>
      	</tr>
      	<tr>
      		<td><bean:message key="reguser.retype"/>:</td>
      		<td><html:password property="newPW2"/> <span class="STYLE1"><html:errors property="newPW2"/></span> </td>
      	</tr>
        <tr>
          	<td align="right"><bean:message key="employee.gender"/>:</td>
          	<td>
          		<html:radio property="gender" value="M"/><bean:message key="male"/>&nbsp; 
				<html:radio property="gender" value="F"/><bean:message key="female"/>
			</td>
        </tr>
        <tr>
        	<td align="right"><bean:message key="employee.telno"/>:</td>
            <td><html:text property="telNo" /></td>
        </tr>
        <tr>
        	<td align="right"><bean:message key="employee.mobileno"/>:</td>
            <td><html:text property="mobileNo" /></td>
        </tr>
        <tr>
        	<td align="right"><bean:message key="employee.familyno"/>:</td>
        	<td><html:text property="familyNo" /></td>
        </tr>
        <tr>
        	<td align="right"><bean:message key="employee.address"/>:</td>
        	<td><html:text property="address" /></td>
        </tr>
        <tr>
        	<td align="right"><bean:message key="employee.email"/>:</td>
        	<td><html:text property="email" /></td>
        </tr>
        <tr>
        	<td align="right"><bean:message key="employee.idcard"/>:</td>
        	<td><html:text property="idcard"/></td>
        </tr>
        <tr>
        	<td align="right"><bean:message key="employee.birthday"/>:</td>
        	<td><html:text property="birthday" /></td>
        </tr>
        <tr>
        	<td>
        	</td>
        	<logic:notEmpty name="SetOK">
        	 	<td  align="left"><input type="button" value='<bean:message key="back"/>' onClick="new parent.dialog().reset();"></td>
        	</logic:notEmpty>
        	<logic:empty name="SetOK">
        		<td  align="left"><input type="submit" value='<bean:message key="submit"/>'/><input type="button" value='<bean:message key="back"/>' onClick="window.close();" /></td>
        	</logic:empty>
        </tr>
        <tr>
        	<td>
        	</td>
        	<td>
        	</td>
        </tr>
		</table>
    </html:form></div>
  </body>
</html:html>
